cmake_minimum_required(VERSION 2.8)

project(libusb_learn)

file(GLOB CPP_SOURCES
        "${CMAKE_CURRENT_SOURCE_DIR}/*.cpp"
        "${CMAKE_CURRENT_SOURCE_DIR}/*.h")
    message("cpp:"${CPP_SOURCES})

#file(GLOB CPP_SOURCES
#        "${CMAKE_CURRENT_SOURCE_DIR}/libusb/*.cpp"
#        "${CMAKE_CURRENT_SOURCE_DIR}/libusb/*.h"
#        ${CPP_SOURCES})

add_subdirectory(libusb)
add_executable(${PROJECT_NAME} ${CPP_SOURCES})

target_link_libraries(${PROJECT_NAME} usb-1.0 udev)
